fix document and some code of `choices`

`choices` attribute seems to expect key value pair sequence of ArrayRef.
But some document and implementation is not.