Fixes array broadcasting in spectral cube and adds unit test

Fixed doc links