Merge pull request #1388 from setowns1/bug

Add clear button to variable filter
Suport ND arrays and VariableTrees for residual calculations.
Add support for residuals of ndarray elements connected to scalars.