allow Foo.bar(x) method def syntax. closes #1540