Warnings cleanup, minor refactoring of XMLGregorianCalendarSerializer
More warnings cleanup
Fix #660