SWORD25: Create a set of functions to serialize LUA

With the goal of replacing Pluto