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