encode measurements directly in tracks and lists  (fixes #22)