Tracking down the Angular Resource object/array bug