fixed onRestoreInstanceState crashes

Fixed several crashes in onRestoreInstanceState functionality for several widgets and components.

Come back `2.1.1-SNAPSHOT` and I'll merge it.