Fixes missing aimaterial constructor/destructor.
Fix SimpleStereo for newer ImageArray type.