Fixed. Function purity checker now takes globals into account.