Use a SortedDict for form fields to preserve order