Don't give functions standalone qids.

A function may be in a namespace, so the qid needs to be fully
qualified to identify it from functions in other namespaces.