Moarrrr templates!  Remove some boilerplate in embind.  Thanks imran and andy!