Fix hasDateProperty()

To our shame we didn't test this when adding it in #19. The date_properties array is an array of properties, not an indexed array of values. So use the correct in_array().