Adding support for inner anonymous classes

Closes #27 
nit: parameter name should be `typeName`