Fix incorrect json encoding for datemidnight and localdate