Add support for nested layers when parsing wms services.