fix 'i' format handling in memory dump