This PR is another tiny improvement found while working on #1765, with the goal to avoid code repetition.
The ARRAY_SIZE macro definition is pretty wide-spread in C projects and e.g. matches the one used in the Linux Kernel (without the additional check to reject pointers, as we would need GNU C for that, see e.g. https://stackoverflow.com/a/19455169; not sure if a useful counterpart exists that only relies on C89). Replacement instances were identified via $ git grep sizeof.*/.*sizeof.