OPAL-1793: Fixed DerivedVariableGenerator to correctly copy categories.