(#21749) Make attributes readable on Puppet::ModuleTool::Dependency

Make it possible to read the attributes of these objects
without turning them to PSON and parsing that back again.
Merge pull request #1767 from dalen/moduletool_dependency_attrs

(#21749) Make attributes readable on Puppet::ModuleTool::Dependency