Handle different parameter types correctly

For some reason arrays, strings, or fixnums are passed to #collection. A
real fix would find the source for the different value paramters and fix
it. But, unfortunately, this fix is much simpler to apply.