Compile const nodes properly.