Bugfix in multiplicative term matching in function module.