Sort out internal statistics and polish future pair stuff.
Fix three bugs with memory management in associative-multi.c