add mapping from Component names to type indices
replace old REPLSystem with a Lua interface