Rename metadata -> arrmeta  across the codebase

This is to more clearly distinguish the arrmeta (array metadata)
from other types of metadata used in other contexts.