How could we keep this aligned (to a sensible degree) with the TypeScript implementation? _Originally posted by @dslmeinte in https://github.com/LionWeb-io/lionweb-java/issues/122#issuecomment-1877077697_ [By running the tests against it](https://github.com/LionWeb-io/lionweb-java/pull/122/files#diff-5ac32b539f4fcd0610dac213f6115b64496ac0c1e70844eefcfe7fc59c34a596)