Convert all StackErrX to ErrStackX.

This commit changes all stack errors from the form of StackErrX to
ErrStackX which is the expected form for standard Go code.