Introduce support for anonymous methods (pass null for the method name) so that you can more easily implement interface methods privately - see #439
For JS tests always write the output