bug(s) and suggested improvements in gmp.pas