[DEBUG] Template for Maple and Groebner bases contained a flaw. Fixed.