Fix synfig::Layer implementation to work with new Context