Add strict module

Also fix leaking globals found by it.