(maint) Add to_data_hash on Puppet::SSL::Base

Without this to_pson fails on for example Puppet::SSL::Certificate. This
caused a failure in for example the ca face when rendering a
certificate.
Merge pull request #2374 from dalen/to_pson_fix

(maint) Add to_data_hash on Puppet::SSL::Base