Add GLib library, add GLib tests (some new bugs found)

I cannot submit issue because of logging in bug on SF, so I decided to write some test cases for GLib library. There already was some GLib tests but wasn't glib library itself. This patch will add library and corresponding library checks.

Note that `malloc` ang `g_malloc` behavior is very different by some reason (there are some bugs in analyzer while using GTK library).