Instantiated groupings and converted constrains to leafrefs.

Signed-off-by: Tony Tkacik <ttkacik@cisco.com>