This is to make param names for files right when options.uploadMultiple is true.
The documentation says that param names are "file[0]", "file[1]", ... if
options.uploadMultiple is tru, but actually "file[]" for all files so far.
This is rectified by this change.

test.coffee assumed the previous behavior. So it has been modified accordingly
so that the current code passes all test cases.