Fix bug with reading from uninitialized memory
Add api function to get number of hash collisions