Fix conversion to R of associative-arrays

I need to TDD this stuff more ...