Type families: apply flattening coercions in the right order