Bug 1041881 - Don't take template parameters by value to avoid accidentally constructing objects. r=khuey

--HG--
extra : rebase_source : 92bf47631beed8dd0c3f5b29b1cfb0b30e502364