[Fix #276] Perform conversion in `as.period.period` if unit != NULL