Now `gpan` (tested) and `bfrq` (untested) accepts 3D arrays.
Added a atleast_2d akin to numpy but with single dimension last instead of
first.