Removing collection instances from the identity map when destroyed

/cc @jish @vcekov