Fix omissions in astNodes.cpp

For #853. Errors were created when merging #842.