Allow 'foo . (42)' calls

Fixes #901