Add ToJSON and FromJSON instances for Scientific

I forgot to add these...