Add a regress test. issue/51

A pointer used by program is sweeped by GC
https://github.com/ajhc/ajhc/issues/51