title: Function in Kotlin data class as argument leads to parceling error
body: <p>I have a data class in Kotlin hat is using the <code>@Parcelize</code> annotation for easy parcelization. Thing is I now want to pass a function to this class and I do not really know how to make the function not be considered during parceling.</p>
  
  <p>This is my data class:</p>
  
  <pre><code>@Parcelize
  data class GearCategoryViewModel(
          val title: String,
          val imageUrl: String,
          val categoryId: Int,
          val comingSoon: Boolean,
          @IgnoredOnParcel val onClick: (gearCategoryViewModel: GearCategoryViewModel) -&gt; Unit
  ) : DataBindingAdapter.LayoutViewModel(R.layout.gear_category_item), Parcelable
  </code></pre>
  
  <p>I tried using <code>@IgnoredOnParcel</code> and <code>@Transient</code> without success.</p>
  
  <p>This is the compile error I get:</p>
  
  <blockquote>
    <p>Error:(20, 39) Type is not directly supported by 'Parcelize'. Annotate the parameter type with '@RawValue' if you want it to be serialized using 'writeValue()'</p>
  </blockquote>
  
  <p>And this <code>@RawValue</code> annotation does not work either.</p>