Don't resolve functions to methods.

Closes #1045