Fix segfault with igbinary, fix #341