Implement timedeltas for to_json

Closes #9027
you need all this stuff? a ``Timedelta`` already has this (as does a ``datetime.timedelta``)