[backend] allow an array reference as publish hook