Added support for reading Classes, Collections, Patterns, and Sets.