Make references with index:true pass Hash options to add_index.
Merge pull request #10010 from pwnall/fix_ref_index_true

Make references with index:true pass Hash options to add_index