Fix getKey in ArrayMap to do proper comparison