remove loop/segment counting from map_if nodes

Counting is handled in map_walker.  Some loop counting in x12n_document and
x12context has been updated to use this new interface