fixed json.stringify behavior for shape and stride