Added more test classes.
Added recomended javassist library.
Corrected bug with casts to primitive types.