[WIP][FEATURE] Prevent typolinks to non translated pages

A new TypoScript setting is introduced called
config.typolinkDisableLinksToNonTranslatedPages.

If this setting is enabled and the typolink function is not called
from a menu an access check will be performed if the page provided
in the link parameter is accessible in the requested language.

WIP: more testing, especially one problematic issue: when both settings
in a page are active (hide in default and do *not* hide non translated)
then the link to a translated version will be active but if no
translation exits and content_fallback;0 is used you will get a 404
error.

Resolves: #20043
Documentation: #57121
Releases: 6.3
Change-Id: I0452524d378cdb7351997cce34c678f704a43069
[CLEANUP] Extbase persistence classes

The classes contain wrong type hints and miss a lot of
checks whether the correct object is present.

Resolves: #57031
Releases: 6.2
Change-Id: I3d03c838b05529daf0da444119dd7f8dba6d5b8a
[BUGFIX] Fix placeholder type detection

Fix the detection of object storages and boolean values in the
TYPO3 database backend for Extbase.

The getPlainValue method is consolidated in the DataMapper and will
not throw an Exception for arrays any more but will convert multi
value objects or arrays to a comma seperated value list that can be
used in IN queries.

Resolves: #57104
Releases: 6.2
Change-Id: Ic35fd2768a1431f260c99d6faf8ad4e0a1754ea3