[trivial] move void parameter check position

TypeFunction::callMatch, and functionParamters does it first, so mimic them.
fix Issue 10630 - Structs with disabled default construction can't be used as `out` parameters
fix bug10115 test case
Merge pull request #2510 from 9rnsr/fix10630

Issue 10630 - Structs with disabled default construction can't be used as `out` parameters