Add asCode function for dumping raw tree representations. 

 Intended only for use by Catalyst developers.