Array style loop for form.elements (fix #40)