ChoiceStringParameter.getChoices: use a member function instead of DynamicStringChoiceParameter