Fix mixing nested arrays and mappings