Add convenience macro for type hashing.