fix Issue 9199 - Module level qualified functions should be rejected
Apply review points by Andrej Mitrovic
Merge pull request #1400 from 9rnsr/fix9199

Issue 9199 - Module level qualified functions should be rejected