libs/core: debug.lua use integers for memory size and peak value