fix for jquery image upload array params
(and lots of tests that didn't really help in the end)