emgm: Initial EMGM work

This tries to imlement basic Generics for the Masses, but fails at
that. We can only work on Scalar values, products and sums cannot
be made to work with Rep.