Adding global leak checking

Closes https://github.com/spumko/lab/issues/24