Fix an error in tools, add debugprint support for string array