Add function to determine macromesh xref bounds.  More cleaning.