Merge pull request 258 (fix for memory leak)
Add test documenting issue 253
Add check to auto-chunking code to avoid infinite loop
Merge branch 'issue_253'