Core.Model: fixed issue with model.getModelName() method.
Core.Model: removed unnecessary code in instance.toObject() method (given inheritance is "fake").