Parse kwargs with YAML, Fix #5224

Well, that took a lot longer than it should have.