Add some CMake macros and functions for testing support.
Rename pointer.h as lang-utils.h and add maybe monad functionality to it.