Removing Final Element in YAML Array Inconsistent Behaviour

Please try to search before posting