Fix def.parse to actually return something when parsing object type