IDF export: fix incorrect rotation of flipped items.
Minor fixes.