optimization of Duration-serialization

see issue #70