correctly convert measures and resolve units recursively