handle multiple fields with the same name as arrays