Consistently serializing array parameters.

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.
Merge pull request #9 from finn-no/fix/consistent-array-serializing

Consistently serializing array parameters.