Closes #208 (closed)
Fixes the bug where SFGs cannot be flattened if the internal SFG has more than one operation directly after its input.