fix parsing names of method invocations (fixes #5)