Added clone support for closure, generatable, and generator.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>