spec: cyclic imports are illegal

Fixes issue 4976.

R=r
CC=golang-dev
https://codereview.appspot.com/7421050