Fix for materials for multi-colored bricks and color value 16.
Added support for transparent colors.
Several bugfixes and optimizations.