**Changes:**
- Implement `to_nparray` and `to_json` and add suitable tests for xobjects. The method `to_json` returns a dict that is json-compliant from which the xobjects can be regenerated simply by passing the dict to the constructor.
- Avoid memcopy (where possible) in a hybrid class.
- Make contexts visible in test printout. Parametrize tests over contexts simply by adding `for_all_test_contexts` or `for_all_test_contexts(excluding: Iterable[str] | str)` on them, the context is passed as `test_context` to the test.
- Minor fixes of typos.
**Full Changelog**: https://github.com/xsuite/xobjects/compare/v0.1.27...v0.1.28