Fixed memory leaks associated with loading trained workflow segmentation algorithm. Fixed error when transform(s) for real-time segmentation do not match transform(S) in trained workflow segmentation algorithm.