Added support for type info (for Java etc clients)

@stevesherrie or @tejohnso please review.