Implemented scope for FlowSegment's context and flowElement references.