fmt: fix allocation tests

Converting an integer to an interface{} allocates as of CL 130240043.

Fixes issue 8617.

LGTM=r
R=r
CC=golang-codereviews, khr
https://codereview.appspot.com/141700043