sort units with equal powers in product units alphabetically
fix warning about raw Iterator interface