appendNestedStage
Appends a nested stage to the mangled name.
Appends "$pipeline[<idx>](<stageType>)
" to the mangled name.
Throws
if:
The builder is empty.
The previous token is not a stage type or index identifier.
The builder has transitioned into stage component context.