Refactored Driver::calculateSubfilter() to reduce complexity.
Repair subpalette handling for attr_id in render settings.