Iterate over form itself rather than element set so that priority is
respected
Merge pull request #5 from adamlundrigan/hotfix/form-element-priority

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