Automatically clean up bool type.
Added testcase showing leakage.
Merge pull request #73 from s-falke/c_interface_leak

Automatically clean up bool type.