winsane: Added bounds check to tainted array_length variable

Reported by Coverity CID 85002.
winsane: Added bounds check to tainted num_options variable

Reported by Coverity CID 84994.
winsane: Added bounds checks to tainted num_values variables