Cherry pick PRs for HasByName, etc. and fix GeyByAddress error type
Rebase to the latest master branch of gnolang/gno. Cherry pick the commits in PRs gnolang#1313 and gnolang#1316.
Rebase to the latest master branch of gnolang/gno. Cherry pick the commits in PRs gnolang#1313 and gnolang#1316.