Support for instance/static methods, fixes #7