3. Lua's pass-by-reference does interesting things that let you work around the absence of a one-by-one add API...
Turns out the following code will actually create the header in LAM because tables are passed around as references:
Lua Code:
-- ...
local optionsTable = {}
LAM:RegisterOptionControls("Foo", optionsTable)
table.insert(optionsTable, {
type = "header",
name = "Bar"
})
-- ...