* More consistent nil return for state * Merge refs/heads/master into nil-state * Add a check for encode(nil) * Merge branch 'nil-state' of github.com:prysmaticlabs/prysm into nil-state * fix test, thanks @rauljordan * fix tests * gofmt