NXTColorSensor: Fix constructor ignoring mode.

The constructor set the mode from the AnalogMode property, effectively resulting in a self-assignment.
Merge pull request #35 from Oberon00/patch-2

NXTColorSensor: Fix constructor ignoring mode.