mocks: handle typed parameters
Merge remote-tracking branch 'origin/master'