Added unittest for dirtycheck for databound puppets.
Inproved the dirtycheck for arrays in Puppets. Solves #2071
Do checkpoint for puppets in correct transaction.
Changed TearDown method for unittests to be called after all tests have run instead of after each test.
Merge branch 'issue/2071' into develop