replace t3lib_div:testInt and t3lib_div:intInRange by helper functions

t3lib_div:testInt and t3lib_div:intInRange are deprecated as of TYPO3 4.6 and are removed in TYPO3 6.0