loader: use ARRAY_SIZE instead of NULL sentinel