fixes and tests for HyperLogLog.fromByteBuffer