added nth_with__typed for the case where nth_with needs promotion (e.g. Date, POSIXct) ...
added nth_noorder_default__typed and using it.
document and add tests for nth. #509