Fix the template $index test so it actually tests that $index is correctly set when the binding context is updated.