Revert "Fixed bug with updating of associations"

This reverts commit 135f0b5e74a5bf51ebd43a8aa326ecd4a31602fd.
Revert "Fixed writer bugging with attribute group import"

This reverts commit 263717e8b64abef60f73199a3f0f90525bab0fa8.