Regard parameters with default values as required if followed by required parameter
Fixes #1357