Support callbacks that are not objects

Currently we only support objects with an __invoke method, which doesn't seem to be necessary.
Well, the variable type is ``callable`` in PHP (see ``is_callable`` and the ``callable`` typehint)