add implementation and tests for vectors of ptime, both in and out