Well, I guess it's time to go nuts with the fanon. What if we say that vampires in OOTS can cast Detect Magic spontaneously? Or perhaps just vampires created from Malack's staff? Or maybe one of Malack's obscure spells allows casters to refresh unused low-level spell slots?