generalized memoizer memo() in lang.m

knapsack stuff in misc.dyn

need to log issue for recursive local lambdas, similar to
mutually recursive locals and fwd decls in general: will
need deferred initialization for these on closure objects
in CG.