get_nodes: adds support for groups to be an array

nodes:
   - name: node_name
     groups:
        - foo
        - bar
        - baz
works

Change-Id: I406e161e562c035bfd24715cc2712e2943958849