ISPN-3388 Make sure we support legacy cacheloaders/stores

Server half of https://github.com/infinispan/infinispan/pull/2019