Issue/master/23096 enc classes with empty params

Cherry-picks a pe-puppet fix of Nick's for enc class handling.  There was a spec conflict between the tests added here and data_binding/hiera_spec.  If anyone has a better solution than 0716e304a6563e267d565db30d8459e9ad7daba6 please shout out.