Enable an actual closure to be passed to CliHelper apply-closures

This enables commands extending nodes:update to take advantage of this
feature without passing strings.
Merge pull request #88 from phpcr/allow_real_closure

Enable an actual closure to be passed to CliHelper apply-closures