Migrate unittest from master to ansi

* Add check as dependency
* Add test to cmake
* Make test_bitset ansi-c compliant and extend test
* Mask enumerate and dump functions under the DEBUG flag
* Document bitset.h

//TODO test_hashgrid and test_radixtree