various: Fix strict aliasing violations.

(cherry picked from commit abf26324dbc6e5c6e3fb2d7be4dd0acc86c0d9c8)
amrwbenc: Fix the (incorrect) array-bounds warning/error.

How cool is it to outsmart compilers?!

(cherry picked from commit 3f26c7b9b26c93832e32aba9cfe014de6460d97e)