Fix #5221 unexpected behaviour of datetime_arange

An integer passed to the `stop` argument of `datetime_arange` was automatically converted to a timedelta; this confused some people. This PR changes the behaviour to what the OP of #5221 expects. Whether that is the right thing or not is a separate question.