Added registry index API.
Fixed LuaIndexes