Add serializers for BatchID, Timestamp

closes #346