Ensure meta-class is restored for Class spies

[Fixes #78068472] (AKA #248)

Not sure if we consider this enough test coverage for spying on classes, but thought I'd start with this PR first to see what folks think.