Add support for DateTime

If a object is created, but the value is only a flat type
(string, int, float) then this value is passed as argument
to the constructor.