Fix to_hsh to include multiple repeats of a segment/loop
Version bump to 2.2.2
Regenerate gemspec for version 2.2.2