Fixed #4566: Constructor added for LayerGradient