ASTNode - added type field, getters and setters