Add hereditary option to as_object_map. This automatically apply as_object_map to the values of the map when the values are "plain old objects".

This behavior is slightly naive but I think it will satisfy most people who have requested this feature.


- [x] Add a [CHANGELOG](https://github.com/pyodide/pyodide/blob/main/docs/project/changelog.md) entry
- [x] Add / update tests
- [x] Add new / update outdated documentation

package:
  name: py
  version: 1.11.0
  top-level:
    - py
source:
  sha256: 607c53218732647dff4acdfcd50cb62615cedf612e72d1724fb1a0cc6405b378
  url: https://files.pythonhosted.org/packages/f6/f0/10642828a8dfb741e5f3fbaac830550a518a775c7fff6f04a007259b0548/py-1.11.0-py2.py3-none-any.whl
test:
  imports:
    - py
    - py.code
about:
  home: https://py.readthedocs.io/
  PyPI: https://pypi.org/project/py
  summary: library with cross-python path, ini-parsing, io, code, log facilities
  license: MIT license

package:
  name: py
  version: 1.11.0
  top-level:
    - py
source:
  sha256: 607c53218732647dff4acdfcd50cb62615cedf612e72d1724fb1a0cc6405b378
  url: https://files.pythonhosted.org/packages/f6/f0/10642828a8dfb741e5f3fbaac830550a518a775c7fff6f04a007259b0548/py-1.11.0-py2.py3-none-any.whl
test:
  imports:
    - py
    - py.code
about:
  home: https://py.readthedocs.io/
  PyPI: https://pypi.org/project/py
  summary: library with cross-python path, ini-parsing, io, code, log facilities
  license: MIT license
