Rename indexes -> indices, add IsValidRoleIndex() and its test.
Merge branch 'develop'