protogen: simplify handling of integers and times.