mavconn: Fix possible array overrun in channel alocation.

Problem found by clang.
test: Fix header include