Fixes for materials.

Fix for materials for multi-colored bricks and color value 16.

Color 16 is a special color, that has to be replaced with the color of the parent part. This is now correctly interpreted.