(bug 49263) Register validators with DataTypes.

Registering the appropriate Validators with their data types
means that type constrains are now enforced for all snak values
that are provided to the API.

Change-Id: Ieda3ea28c16d35d70b0cf814e8c86853edbecf5f