Fixes bad validation in ObjectConstant constructor.