Parse function args better.
Merge pull request #6 from jerith/feature/fix-function-type-resolution

Parse function args better