ArduCopter: Use 16-bit arithmetic when comparing event tick counters.

- On the ARM, once the tick counter wrapped, we stopped running events
  because the wraparound case wasn't being handled correctly.  Make
  sure the comparison is 16 bits to prevent this.