Added option to as_numpy to select 3D or list of 2D

This allows components to insist on one 3D ndarray or a list of 2D
arrays if it matters to them, or use 'native' format if it doesn't
matter.