Allow use of Attribute objs or strings in indexes