[WIP] Small fixes in converters to avoid valgrind errors

Fixes for some of the errors in http://pastebin.com/TYjzrCzJ

Currently looking into others not fixed yet