Mavlink variable length

This is not ready for merging, just for reference - will be superseded by a proper variable length implementation.