data/type: allow class-less type nodes

In certain cases, nodes may not have Puppet class. To avoid Hiera error,
we need to ensure "class:" is set only if there is some steps (then some
classes).