isFnName should look for exact names

Otherwise we might think a local variable is a function when it shadows
a function.

Fixes #993