Relax mtl dependency; add missing Num constraints.

Minor patches for 7.6.1 compatibility.