Fixes for Internet Explorer (#229)

-- Convert value for setAttribute() to string
-- Don't call repairClonedNode() on first rendering (because then it isn't cloned)