GRADLE-2866 - Changed IvyXmlModuleDescriptorWriter to write the original dependency config mapping rule. Previously, it would write the rule as interpreted by DefaultDependencyDescriptor, which gets it wrong for rules such as `*->@` and `*->#`.
Added some more unit test coverage for ivy.xml parsing.