Made RegressionModel serializable and added unit tests to make sure predict methods would work.

Previously the RegressionModel's were not serializable, and thus the predict methods in them would not work.