cleaned up parsing of fields and indexes
cleaned up parsing of fields and indexes

--HG--
branch : resolve-work-2

consulo/consulo-lua,sylvanaar/IDLua,sylvanaar/IDLua,consulo/consulo-lua,consulo/consulo-lua,sylvanaar/IDLua