Fix the 'on' filter on date columns

Also fixes a security exploit.
Thanks Simon Willmann!
Prepare v0.8.4