Test and fix rendering of multiple input fields in has_many.