Symbol database: added simple mismatch check in Scope::findFunction when passing address to function that expects a reference