fixed flexpath example so it operates with 3d arrays to demonstrate we
can support this between two C codes.