CompositionObject: Copy only valid RLE data.

Use proper size type.
Add advanced settings page.
Fix warning C6230: Invalid HRESULT use as boolean.
Suppress C6102 warnings.