[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