fix Issue 12255 - opCmp requirement for AAs breaks code

AAs should require equality and hashing for key types.