simplify various code using new map index rule

R=r
CC=golang-dev
https://golang.org/cl/833044
27 files changed