Fix bug in embed.

Sometimes, re-render will re-use the old object, even though we've
called gensym again.

To fix, make the ref ids generated via embed deterministic.