Iterate over form object rather than element set so that priority is respected

`$form->getElements()` retrieves element set with no respect for priority assigned to elements, so it's not possible to inject new elements at a specific location in the form without also overriding the view script.