Optimize: Use indexed type hash for TypeAliasType::hash

The old hash function deserialized the aliased type first, then
used its hash function. This is much slower compared to using the
indexed types hash function directly.
Minor: Fix warning