Handle parsing of unparameterised classes with function calls

Fixes #1