core: rework ancillary array handling
This MR supersedes !5473 (closed)
The main goal of this MR is to be able to forward a clock context id from the es_out.c to the different outputs, and allow more straightforward ancillary forwarding.
Indeed, the clock context detection algorithm has some issues, specially with drifting live streaming.