Implementation of Domain::load() and Domain::getValueType() for all domains.

Fixes #160. Fixes #159.