fix #323 where ktype was no longer correctly set making chunk() key preservation fail.
Merge pull request #325 from 2072/#323-PR_fix

fix chunk() key preservation after #323