Refactor display lists to use less memory.

r? @metajack