Added unit-test. Added temporary workaround for a not yet fixed but in
DMD in conjunction with valgrind.