Flattens Entry::Script elements so we can use YAML anchors as part of the before_script and after_script definition.