Ide 1.5.x

As discussed in Issue #1918 an implementation with a local variable in timedPeek()

I apologize for having new.cpp included in that pullrequest as well - i'm still strugeling with github ;) Nevertheless, just removed some unessarry semi-colons there to avoid compiler warnings