Fix anonymous functions not auto completing

Fixes #36