attempt to simplify check for object literals
share object type