better gson unrolling for Dates and Integer
fix a npe when signout is called too early