fixed get_function_string to also work with lambdas