CDK-260: Fix PartitionExpression for DateFormatPartitioner.

This moves the toExpression(FieldPartitioner) method into the
PartitionFunctions class. This allows accessor methods to be
package-private and puts the expression logic for both directions in one
place to avoid oversight.
DK-260: Revert change to TestMetadataProviders.