Add support for object function dispatching
(issue #26)