fixed object_new to support zero arguments