fixed #23112 -- Field.get_choices tries to index an iterable / Add tests