Fixes bug 497 - Filtering date dimensions for row/pie

Fixes Bug #497.

Correctly coerce dates to primitives for comparison.