removed keys.lengths
added dupe test
Removing direct access to keys array and test cleanup
GetByInt renamed to getByIndex
getKeyByIndex
removing direct access to keys