prevent merge_readings from causing witness loops
move custom datatypes to their own package; add ternary is_significant to relationships. Needed for tla/stemmaweb#33