Fix some issues related to Date which are not transformed by the SDK