flatten id params

From the tests, I’m thinking there are instances when [[1], [2], [3]]
appear. If the tests are doing it, then I’m guessing developers are
doing it and its some accidental behaviour on Spree’s part. Hoping the
flatten removes the deprecation warning and retains any existing side
effects.