Fix issues 8435, 10118.
Hack to make BigInt's typeinfo use the correct version of opCmp.
Use typeid.getHash instead of rt.util.hash.hashOf which is not
accessible from outside druntime.