Implement a suggestion of Mauro from julia-dev to use type hints with the
generic ObjectIdDict type.