Support for anonymous classes (closes #42)