Clean up some error handling
Add a couple methods to layout
Change residuals to use apply_layout
Use intersect_layout
Simplify one-sample t-test a bit
Add base class for statistics