Added filtering functions to IntMap
Implemented folds for IntMap
Change to specialized Word/Int conversion functions
Inlined folds to fix performance problem