Fixed int/str type casting for parameters in nodeToDict