another type parameter fix, and changed to alias based on number of bases, not dimension number (a row vector could also represent a state but has N=2 in julia)