ast.cpp: flesh out loop node