allow replacing elements within a form collection

currently you can only remove elements by submitting fewer elements than is requested. this patch will allow you to replace elements i.e. remove an element and add another one.