Wip cleanup memory store

This should also delete references to `ik` from the maps in `memFtoI`.