Coerce time objects serialized as Strings before doing the timeoutable comparisons.

The comparison only fails on Ruby 1.9.3, when we need to parse it properly back
to a Time instance.

Related to #2930.