Implemented backtracking in mwcstage. If a dependency is invalidated, the appopriate node flag is cleared which causes mwcstage to reprocess the node at this stage.
Fixed minor issue where the sentinel in mwcstage would kill the processing too early if many nodes were processed at the same time.