[Bugfix] embedded records mixin: key variable needed to be declared
Merge pull request #2061 from pixelhandler/fixup-embedded-records-key-variable-in-serialize-methods

[Bugfix] embedded records mixin: key variable needed to be declared