Fix for ChannelMapper fn losing its wrapper after the first call
Fix multipart parsing for case with multiple identical attachments

Fixes #96.