Improve conversion of temporal coverage from and to JSON.