Store functions defined in a class body in the class object.

This means methods are half-way there. To make them work properly, attributes
looked up in the class object have to be wrapped up as a lambda with the
invocant to make them behave properly.