I haven't seen a serialization exception, but I have run into plenty of footguns with YAML (ref GitHub Actions).
The DSL semantics can be weird with when things like params/env expansions in options block are evaluated.