title: Boolean is not Serializable?
body: <p>Consider this tiny snippet:</p>
  
  <pre><code>scala&gt; val u = true.asInstanceOf[Serializable]
  java.lang.ClassCastException: java.lang.Boolean cannot be cast to scala.Serializable
  </code></pre>
  
  <p>Well that is a bit of a surprise..  The motivation is to support a modest range of classes - both primitives and custom classes (which <em>do</em> explicitly `extends Serializable). </p>
  
  <p>So then what is the way to handle automatic serialization of these primitives?</p>