Support residuals for 'wide' variables such as arrays and variable trees