Fix for Parcelable[] ClassCastException

Fixes #1208.