Beefing up material parser's renderstate defintion detection.