Original commit message:
"Cosmetic change (after bugreport), scaling in axis (press X,Y,Z) now prints in header "local" too, this to indicate it only does local scales."
The solution was half good, since only object mode is restricted to local axis constraints. Fixed by checking for the Local flag (which was properly set).