Absurd behavior of Array.push()


I have upgraded to the last ionic and angular bundles:

Cordova CLI: 5.3.1
Gulp version:  CLI version 3.9.0
Gulp local:  
Ionic Version: 1.1.0
Ionic CLI Version: 1.6.4
Ionic App Lib Version: 0.3.8
ios-deploy version: 1.7.0 
ios-sim version: 4.1.1 
OS: Mac OS X Yosemite
Node Version: v0.12.7
Xcode version: Xcode 7.0 Build version 7A220 

and now my app, which was previously working, has a crazy behavior with all Array.push() function.
In particular it seems that the push does not work anymore on any Array. In fact with this code:

var obj = { arr: [] }
var other_arr = []
for (var i=0;i<10;i++) {
console.log(obj , obj.arr , other_arr )

In the log I can see the correct array inside the obj variable, but both obj.arr and other_arr return an empty array.

Any idea of what could have happened or how I can debug it??



Another strange issue:
Running on Xcode I get the following log:

{"arr":[0,1,2,3,4,5,6,7,8,9]} 0,1,2,3,4,5,6,7,8,9 0,1,2,3,4,5,6,7,8,9

at the same time the log of GapDebug in Chrome shows:

{arr: Array}  [ ] [ ]

The problem is that the app actually gets the same results of GapDebug and receives empty arrays…