Allow static builds via CMake flag.
Allow retrieving strings with embedded nulls and provide test case.
Use Lua-header defined type for numerical values.