metagen support for returning scriptvalue
move method implementation to cpp file
allow controlling of the GC flag from script
refactor: move bindExternalObjectToClass to the context