Fixed handling of nullary functions (e.g. pi())