Fix swe:TimeRange decoding

Fixes swe:TimeRange decoding (with tests)