Fixed issues with as.Dates
Included scripts in original from the ISOweek package.