Rewrite of logNorm
Add Obj reference to the query cache (for debugging)
Fix random and lognorm