Update to new go/types API.

Fixes #34