cmd/gc: properly set variadic flag on method values.

Fixes issue 5231.

R=golang-dev, daniel.morsing, adg
CC=golang-dev
https://codereview.appspot.com/8275044