Validate arguments to a choice parameter.

Remove invalid ones.