Fix for issue #257

Fix bug with flatten_params on child array element.

For: {parent_key => {keys1[] => [{keys1 => value1}]}} 

Before fix: [["parent_key[keys1[]][keys1]", :value1]]
After fix: [["parent_key[keys1][][keys1]", :value1]]