Introduce Git.GetTree

Update test_from_json.pl to handle arrays