Support index definition in <table>

TODO: Document me.