Add tests for encode/decode infinities and nans
Merge branch 'master' into feature/spacecenter