don't iterate keys of date objects

This way we don't try to iterate keys for date objects. Addresses https://github.com/LearnBoost/socket.io/issues/1518.