Rather than storing data structures directly in the hashmap, I would store them in an array and map the keys to array indexes.
Then the types of the hashmaps would all be the same (all map key->integer), and I could develop reusable procs for each set operation.