OP-1456 fixed macro for uav object field to array casting and added compile time asserts to assure its working