Adds support for DateTimeImmutable by using the shared DateTimeInterface which both this and DateTime implement.
This methods was untested, so this adds basic support for all data types currently tested by other test cases in this class.