Add strong typing and proper error details to configuration loading process