fixed prototype lookup bug in custom_object_type::get_definition