Generalised array codes and their trellis structure