Fix issue with parameter types not being reported correctly