Removed special coding for local types
Removed special coding for local types
Cleaned up a lot of dead code
Removed layer GobEncode and GobDecode
Removed layer GobEncode and GobDecode
Encoding layers as a block rather than a loop