Fixed an issue with the extend function not handling dates as a native type