Strict check for reading static config.

The check for dsnClassMap() reading/returning should be strict.
I think we could type hint with array here