Always use ClosureType, not *ClosureType

This fixes the issue of user-defined functions never being found.