minor fixes for display memory. ignore class fields to provide more accurate per-module memory usage