Add type parameters and 'TODO: make this obsolete' in Materials.
Change height limit to 256.