Implement primitiveChangeClass
Fix object enumeration with GC
Minor cleanups