`reverse` function doc https://mc-stan.org/docs/functions-reference/matrix_operations.html#reverse-functions says the input needs to be a `vector` or `row_vector`, but it seems to work also with `array`