Fix #98 - treat Date objects as primitives