Fixed: bug in CodeGenerator not able to accept non-BaseObject models