improved APair
added tag to benv, removed ad-hoc .application tagging, added
Closure.procId to equals/hashCode
cachedValue is joined with actual value for (i) actual return and (ii)
updating memo
also clean up procIds inside r