apart from Calendar, also serialize Date and Temporal using the new
java.time API