Allow pickling of fit objects

Closes #54