Make ContainerLayer::first_child borrow temporary

Fixes a crash in ContainerLayer::remove_child (#1778). r? @larsbergstrom