added support for DateTimeImmutable to Formatter

fixes #5503