Separated block map and element key templates from powerset. Subsets are ref_counted as result of maintaining shared pointers. Debugging bad indexing problem. Need to figure out still