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