Added some basic functions for traversing/editing blocks in AST.