Added support for indexing AF::Base objects.