Prevent erroneous index creation for non-numerical attributes in Antelope.

Antelope did not check the domain of the attribute when creating an index, which resulted in internal inconsistencies. This pull request fixes the problem.