cmd/gc: check for initialization cycles in method values

Fixes issue 7960.

LGTM=rsc
R=rsc
CC=golang-codereviews, gri
https://codereview.appspot.com/159800045