Bug 817144 - Compiler: Support indexes defined on attributes. r=gandalf