Fixes for the #3073, "subsetting/analysis/create a zip file fails on R date recoded vars"