added to get_type so that it can resolve variables but not quite working because function gives up looking for variable type too soon
Merge branch 'code' of github.com:kyzhai/SMURF into code
forgot to add this