Fixed issue in visitSlotAssignment where value was visited twice.

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