Implement getTypeAtom, compareFeatures and compare on BigInt