equality: struct transparency and inspector shortcuts and caching

Same as for hashing.
fix missing initialization of cached inspector reference

The 3m transformation fills it in, but it's obviously
better to be explicit and avoid the bug for CGC.