solved bug regarding variables and functions type autodetection