Fixed bug in union type identity comparison