The IMA_IS_STEREO and IMA_IS_MULTIVIEW flags can get out of sync with the
views list. As a solution this simply removes those flags and always looks
at the views list to see if the image is stereo or multiview.
Also fixes memory leak when loading multilayer multiview images.