make config-creating funs more regular

Suggestions by @dbuenzli. Invalid configuration should be treated as programming
error.

- move exception to the standard `Invalid_argument`
- remove `_exn` suffix from names