Added CValidator for usage in c and dal backend

CValidator can be used to validate that elements in the network can be
mapped to valid c (functions/variables).