Fix: Removing local

Removing local also considers ComponentArrayRef with a local as base…