Added a test method and example script to handle structured ndarrays.