Added support for multi-dimensional sequences

Modified generation code to be compatible with structures containing
multi-dimensional sequences defined in an IDL file.