docker/test_git_loader: Use dulwich instead of git and add extra checks
Towards removing the shell based tests for the docker environment,
synchronize the features they cover by checking in Python based test
that all git objects have been correctly loaded into the archive.
Also prefer to use dulwich to manipulate a git repository instead
of git command.