fix bug with validation when parameters contain arrays

So that `params([{ :foo => :baz }, { :foo => :bat }])` for `@element=:foo` returns `[:baz, :bat]` instead of an ArgumentError.