In new compilation logic:
- Refactored the different appendAssignment* methods for better support
for reuse.
- Added compilation logic for dicts.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>