I think this might be a bug in the dev tools console (ie. when it prints objects), because it works fine everywhere else.