[TASK] Add support for new JSON format

With https://gitlab.typo3.org/t3o/ter/-/merge_requests/600 the
format of the dependencies column in `tx_terfe2_domain_model_version`
was changed from serialized to JSON.

In https://gitlab.typo3.org/t3o/ter/-/merge_requests/601 a CLI
command was introduced which generates "compatible TYPO3
versions" data from these column. This CLI command however
only evaluated the data in the old format.

Therefore a fallback is being implemented to support both
formats, so it doesn't matter which command is executed first.
10 jobs for 486-add-support-for-new-json-format in 5 minutes and 39 seconds (queued for 4 seconds)