Improved Lua 5.2 support for serialized functions.