Remove usage of classOf in generated picklers for Scala.js
compatibility.