Allocate GErrors using the slice allocator. (#354054, Matt Barnes)