Fix OPAL-1715: Derived variable cannot be removed
(cherry-picked from 2d9a0f0)
OPAL-1500 Only length and summary are available as aggregation methods.
(cherry-picked from 324b581)