Use alias-safe types in AV_COPY/SWAP/ZERO macros