Make sure that Table-bound resources are released when a primitive collection is closed
Equals and hashCode for primitive collections

Also fixes the PrimitiveIntLongVisitor and PrimitiveIntLongMap.visitEntries, such that visitation can throw custom exceptions or be halted midway.
Merge pull request #3702 from chrisvest/2.2-prim-coll-eq

Equals and hashCode implementations for the primitive collections