Add support for POJO objects

This adds support in the TypeExtractor and also one can now use field
expressions for grouping, join, and co-group.