add initial table indexes. multiple decl fixes, including correct array handling.