Fix regression

Fixes regressions introduced by commit
4cfc1f2b2e8e834cfeaffcff85b0f22f2cb78f74, due to generic collection
exceptions in Metatables.checkMemberCache and Metatables.setMemberCache.