Fixed problems in layeredcrosssection where the redundant mat-argument was used instead of the appropriate layer material.