[SDAG] Add an assert that we don't mess up the number of values when