Convert between mixed numbers and improper fractions (#788)