tests, drive by: Fix double comparison, use reasonable margin based on context of test
mavlink: Handle unhandled enum cases
mavlink: Optimize to native types where possible, move things to optimize alignment