Add support for Double type and minor refactoring to Configuration domain.