Adds support for parsing dates. Also fixes a parsing bug that this revealed, where rules were being added multiple times.