More validation, shortcuts for empty SparseBitmaps.
Normalize whitespace.