pub fn reshape_array(arr: &mut VecDeque<Expr>, ty: &Type) -> Result<Expr>
Reshape a possibly flattened array to nested.
Please make sure arr is non-empty.
arr