Correctly handle arrays of items and complex types in params
Fix (some of the) specs