Fix a crash in filters when a linearRGB filter output is used in a sRGB filter
Found a crash in the resvg test suite.
FilterContext::get_input() ensures filters get the color space they want. While it was converting sRGB to linearRGB, I overlooked the possibility of linearRGB input when sRGB is needed. This patch fixes this and adds a test.