Add more tests to ensure the interaction between TransactionEventHandlers and indexes

This verifies that github issues #3590, #2851, #2270 and #2714 are fixed in 2.2.
Added more logging in HA

Removed a flaky test which is not applicable after we've introduced UpdatePuller
Added logging to help locate where all instances in a cluster see others as available.
Implemented IntArray as first-class int array

previously IntArray was just a facade on top of LongArray.

- For this occasion LongArrayFactory has been renamed to NumberArrayFactory
  with two added methods newIntArray and newDynamicIntArray.
- NumberArray, which is the super interface of LongArray/IntArray now
  extends AutoCloseable (but doesn't throw any checked exception) so that
  off-heap implementations may free its allocated memory.
- Cache structures used by the importer also now has a way of being closed
  and are indeed closed after used.
- Enhanced testing of heap/off-heap Long/IntArray with randomized testing.
Merge pull request #3621 from tinwelint/2.2-better-cache-arrays

Implemented IntArray as first-class int array
Fixed mistake where off-heap IntArray would swap long values
Merge pull request #3620 from chrisvest/2.2-tests-for-txeventhandler

Add more tests to ensure the interaction between TransactionEventHandlers and indexes
Merge pull request #3598 from S124568/2.2-cluster-topology-IT-flakiness

Added more logging in HA