StmtPrinter: Fix scoping for enums (esp those defined inside classes)
Fix scoping of template arguments, typedefs in classes
Added some useful utility functions