SES-1676 : Add LiteralUtil.canCreateLiteral for boolean tests

This method will return false if the object is not valid, and will only
throw an exception if the object is null