Fix for method overloading in d3.xml and d3.text