Prevented issue with accidentally calling clear on a composite.
Added ability to instantiate Hashmap with a void as value, which will degrade the hashmap to a set.