Added support for patsy DesignMatrix objects as input.
Fixed a bug in how the forward pass determines which terms should be linear.  Made patsy support better.