Add support for arm64.

Needed to add a special case for BOOL values, since in 64 bits BOOL is defined as C99 bool value, which has a type encoding which was not covered.