The [unexpected behavior](https://github.com/toml-lang/toml/issues/436) has been [clarified to be a bug](https://github.com/toml-lang/toml/pull/441). It's still present in v2.3.3.