Fix a bug where variables introduced in state updaters that depend on other newly introduced variables where erroneously classified as scalar.