Fixed bug with variable functions.

Fixed code like this:
var<function<void>()> foo = some_function;