Use flag operation in GetClassTypeReference.
It's not likely that other flags get added but just in case I made the
operation working as flag operation.