fix: should check error of loadstring function.
fix: should use metatable to check the constructor.