Keep names used in static values if they are not used anywhere else.
Adjust tests for StaticPointers.