[SDAG] Simplify the code for handling single-value nodes and add