**Describe the bug** Output files of `ctapipe-compute-irf` and `ctapipe-optimize-event-selection` do not contain reference metadata.