atm: Use ARRAY_SIZE macro when appropriate