Minor fixes in astropy.visualization

Just a bug fix (to support n-dimensional arrays) in ``AsymmetricPercentileInterval`` and a small optimization.