[SelectionDAGBuilder] Add const to relevant places