Using net.dongliu:gson-java8-datatype:1.1.0 works great for Optional<>, but not if its inside of an @AutoValue class.
Using com.ryanharter.auto.value:auto-value