Fixed SCL-807
Added Variance checks for functions, variables and values