cleanup / consistency fixes for the fmpq module