A minor suggestion: I think we should migrate the switch statement added in pull request 16 to switch on an enum instead of a string. The switch is over the list of the primitive java data types, so we'll know the list at compile time, making it a good enum, candidate, and we would get compile-time checking with the enum we can't get with Strings.
Thoughts?
