Added delete statements to the dictionary so that we can keep memory safe.
Furthermore added tests for the variable and the dictionary types to ensure that the
delete statements actually works.