Fix issues identified after valgrind integration

The C++ libraries themselves were clean, but a couple of issues were
found in the test cases:

-> Don't allow a stack overflow when testing the datalump object
-> delete [] new'd memory in the stdWriter test
-> Initialise all elements in the reference vector in the datavector tests

Fixed a syntax error in the makefile.include