Removed bug when persisting associations. Used 'associationPayloadName' instead of $associationPayloadName.
Should never stay up all night coding and NOT HAVE PROPER TESTS!

Thanks to Rens for spotting the bug.