chore: use `Expr.numObjs` instead of `lean_expr_size_shared`

Remark: declarations like `sizeWithSharing` must be in `IO` since they
are not functions.

The commit also uses the more efficient `ShareCommon.shareCommon'`.
3 files changed