(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.