debug allocator memory patterns - closes #338