Add support for arm64.

Need 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.
Merge branch 'feature/arm64-support' into develop