Consistently serializing array parameters.

Hi!

This introduces the concept of parameters who's name ends with "[]" should always be treated as an array.
Prior to this change you would have to have more than one parameter with the same name to get that parameter to be serialized as an array.

See added tests for example.