Fix dayofweek to return the same values as defined consts Monday=1, Tuesday=2, etc. Fixes #52.