Tests of RDynamicArray. Memory leaks on my mac.