lastSegment function
Allow multiple values in resource map templates
Basic MapSource machinery working except for reporting of failed matches