Fix funpow problem in grobner module.

Signed-off-by: Eric G Taucher <researcher0x00@gmail.com>