Fix layer side canvas; it was not defaulting block types properly, resulting in silly sky stripes.  Also change some more things to use ThreadLocals instead of newing up double[]s or using non-thread-safe instance variables.