Fix polymorphic auto-index definitions.

[ fix #3203 ]