moved the observer split regexp into a higher lever variable so it is declared once, changed array cast of arguments to use `konflux.array.cast`