Adding some basic hash stat collection functions
Removing some compile warnings from testing