make form params arrays when appropriate