ClassContextResolver now handles types defined in empty package
correctly.

Defined retainAll in SubtypeSet by taking glb of types.

Added relevant test cases.