ensure integer return value and handle dates in isoweek

Final division changed to integer division in isoweek.  In addition,
input coerced to POSIXct using ISOdate to ensure classes match for
substraction of nearest thursday (nth) and january 1st (jan1).
Previously, date input resulted in Date - POSIXct.