Properly coerce NilClass into Lua nil objects

While working with some ruby hashes I came across it crashing because it didn't know about NilClass.

This just makes it use the lua `nil` since `nil.to_s` would return `""` in ruby.