fixed a bug with instrumenting empty funs
small fixes: removed a 'puts'; improved type conversion from Range