Fix ncalls to include anonymous classes