move PrimitiveTriples primitives to millipede;  tweak rules for rewriting
certain triples in partitioner