added Callback::invokeSafe
Image, Json: used invokeSafe()
Strings, Arrays: checking of preg functions moved to RegexpException::call()