gc: test + fix escape analysis bug

R=lvd
CC=golang-dev
https://golang.org/cl/5333049
2 files changed