Fix bug introduced by cleanup change #87. DumpVisitor is still needed as...

Fix bug introduced by cleanup change #87. DumpVisitor is still needed asit will take multiple phases to generate code.

It passed with javamop -agent -usedb. 
@owolabileg and others please review, thanks!