Fixed a memory leak in model creation from the es5 get/set creation, see #6