Backport of extbase 1.4 (4.6) to TYPO3 4.5 (performance improvements)