Boundaries, hulls and spectral mapping theorems