fixes #7: add initial AST functions

Adds `isExpression`, `isStatement`, `isIterationStatement`, and `isSourceElement`. Fixes #7.