Make various parse node functions const correct.