Added typing of Lua config elements, and added source and reader options parsing.