Improved value-class-pattern parsing for datetimes, based on php-mf2.

Also added a few test cases for parsing dates with value-class-pattern