tests: Fix memory leaks in transfer full/container inout tests

Make sure to call the various free functions for container tests where
inout arguments are marked transfer full or container.

https://bugzilla.gnome.org/show_bug.cgi?id=709796