Allow unmanaged resources

Only clear out resources that are either in the old or new tank type
when switching tanks.