cmd/cgo: add missing ast.SliceExpr.Max case to AST traversal.

+ static test

NB: there's a preexisting (dynamic) failure of test issue7978.go.

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