Convert Lua booleans to 1 and 0.
Revert "Fix that script raises an error instead of returning an object."

This reverts commit 7a38d05e88620585a3e8d75da6f4c1839b3a5b72.