Add clone method, copies compiled functions.

Signed-off-by: Eli Skeggs <skeggse@gmail.com>