Lua exported file has wrong tile IDs

Yes, this too is intended behavior. Default values can be written to file when exporting using the Resolve object types and properties option.

See also this topic: