changed Fun.dummy_instance to support instantiation of nested classes