Fixes ConcurrentModificationException caused by modifying the result of ObjectType#getMetricFields.