encoding/gob: error rather than panic when decoding enormous slices
Fixes issue 8084.

LGTM=ruiu
R=golang-codereviews, ruiu
CC=golang-codereviews
https://codereview.appspot.com/142710043