(CDAP-864) Fix classloading in unit-test mode

Make class loading of byte code generated classes aware of classes that needs to be preserved with the original ClassLoader so that even user classes presented in both system classpath and program classloader, it can be loaded correctly.
It will not happen in here, because the classloading of the handler type provided to this generator would already failed if that's the case.