Resolves issue #46 with complex keys with arrays.