Function monkeyPatchPrototypeOfClass

monkey patch the prototype of a class.

TODO: give usage examples and situations where this will be useful.