Fixes and cleanups to solve issue #40: Commit of buffered objects with multiple chunks broken
CR #40