Fix detection of custom Date objects such as the ones used in
http://sinonjs.org/docs/#clock