Actually, I think it's the test that is wrong. As the big long comment in `docToModifier` states, arrays can't be separated out, so the test is expecting the wrong thing.