fix-#397: Allow specifying the '_cls' as a field for indexes
Merge pull request #719 from DavidBord/fix-397

fix-#397: Allow specifying the '_cls' as a field for indexes