Added a to elements to check for index references on formsets.