Added support for the recursive setting cascade mode for color and opacity.

New functionality.
Can change cascade opacity and color recursively.
Fixed Layer test according with this change.