Please refer to:
http://blender.stackexchange.com/questions/6822/unexpected-result-when-using-transform-resize-api
Closed by commit rBf49e89fa378c.