Fix bug that caused certain functions to incorrectly be identified as closures.