Improved fix for issue 191.  Does not crash during i-supported smem retrieval when learning on.  Also produces more descriptive chunk names in certain cases.