Replace TMap with Map from stm-containers
Replace TSet with Set from stm-containers