fix lua register not registering constructor if no method exist