Corrected a type in the documentation and the annotation of dateType