Support constants of user-defined types, support 'x is None'