Check type of varargs in evaluate expressions + some cleaning
#SCL-7077 fixed