Check type of icon argument in treenode:SetIcon