Fix hasDateProperty()

To our shame we didn't test this when adding it. The date_properties array is an array of properties, not an indexed array of values. So use the correct in_array().
Merge pull request #22 from isaacgrant/fix-has-date-property

Fix hasDateProperty()