Texture plugin fixes

Thanks, as ever, to Pete Segal for helping me out. The texture plugin
crashes appear to be resolved.
Deformer cleanup and some minor chanmod experiments also in here.