Flatten service context

Template evaluation function "context" for services flattens all ancestors'
contexts into a single map.