Fix name collision with error type in latest `package:json_annotation` Update checks in GitDependency to use new features