Added handling of array-type parameters

Added implementation and testcase for sending parameters with the same name [1].
If a form parameter is of type array each value is sent as separate part in POST/PUT requests.

[1] http://www.w3.org/TR/REC-html40/interact/forms.html#checkbox