Add tests for ParcelableLruCache

Also made the ParcelableLruCache more robust, fixing some crashes
found by failing tests.

Change-Id: Iec85060e184614658eed53e112f58fca919489b9