DATAREDIS-294 - TypedTuple should allow sorting using java sort().

Removed compiler warnings and reduced unnecessary boxing.