Fixed problems with facet counting and composite map[ reduce