Fixed calling of cobj instances with no arguments

Fix for ticket 18 in our bug tracker.