fix Issue 9199 - Module level qualified functions should be rejected

`inout` had qualified the function itself, rather than its return type.
Merge pull request #1087 from 9rnsr/fix9199

Supplemental fix for Issue 9199 - Module level qualified functions should be rejected