Closes #33: Add memory debugging helper