Added validator support for cc.variable, closes #45.