Allow pickling of fit objects

Closes #54
Return nan if parameter has zero variance

Closes #112