title: Parcel: unable to marshal value
body: <p>I'm using Kotlin with Anko and I want to send to another activity a list of Players. </p>
  
  <pre><code>class Player(var name: String?) {
  var score: Int = 0
  
  init {
      this.score = 0
   }
  }
  </code></pre>
  
  <p>My activity:</p>
  
  <pre><code> class MainActivity: AppCompatActivity() {
           override fun onCreate(savedInstanceState: Bundle ? ) {
               btn.setOnClickListener {
                   val players = ArrayList &lt;Player&gt; ()
                   players.add(Player("John"))
                   players.add(Player("Jeff"))
  
                   startActivity &lt;ScoreActivity&gt; ("key" to players)
               }
           }
   }
  </code></pre>
  
  <p>When the code reaches the startActivity line, I get this error:</p>
  
  <blockquote>
    <p>java.lang.RuntimeException: Parcel: unable to marshal value
    com.yasin.myapp.Player@4e3940e</p>
  </blockquote>
  
  <p>I suppose something is wrong with my class Player, but I don't know what. I'm using kotlin version 1.1.4. Someone can help me?</p>