Improve memory debugging facilities