Update JsonSerializationVisitor.php

Bugfix: the root could be modified when it shouldn't
Tests added
Merge pull request #1 from dizda/fix-tests

Fix tests