Add test for local mode passivation to ensure no side-effects were intro...

...duced by ISPN-2712 fix

This test was needed to clarify the cause of an AS integration build failure which indicates ISPN-2712 changes as a potential cause. See discussion here: https://github.com/jbossas/jboss-as/pull/3978#issuecomment-13083290

This also solves some generics warnings in SingleCacheManagerTest.

Please integrate this in master and 5.2.x (local_passivation_test_52)