Improved material definition modules.

Handmade material definition module stubs are now written with a well-formed
last line.