Made index a constructor argument in ValueOptionAttribute.