fixed hash map iterator
added bit storage support to ref