[core] Smarter script cache refresher
[core] Added for-in hasOwnProperty filter