Group the StackErrX definitions.

This improves the godoc display and provides a cleaner separation of the
error definitions from other variables.