Keep single state across source generation stages

Addresses issue #67, where tagged terminal was used inside both a
temporary variable and the main expression. Due to state separation the
tagged terminal was named inconsistently on the different source
generation stages.