update doctests and slightly improve varBind occurs checking