Perform type check on dict2xml parameter.