I've actually implemented some functions that can copy nearly any value between Lua states: http://pastie.org/8996668