Fix Environment#register to pass on #name