fixed a strange bug when calling oop.create with an object whose constructor is Function as the first argument