Fix bug in associative-multi-pointer hash.

Also finish unittest for it.