fix: parameters can be objects or arrays of objects

The latter happens when the parameter has multiple types