apply patch #92976 from tatien: change the (apparently obsolete) VOTINGAPI_VALUE_TYPE_KEY constant for 'option' and fix other problems with $vote objects not being created.