Added handling for Guava's Optional de/serialization with typing.