s3:idmap_autorid: Use ARRAY_SIZE where appropriate