Added closing Lua state during os.exit() for Lua 5.2+ (closes #11).

This calls finalizers before exiting the process.
Cleaned trailing whitespaces.
Updated Serpent (0.272) to fix array indexes serialization.
Added check for loading 'os' module that may be absent on some systems.