Don't lose trailing dimensions

The array type in arrayfire.f95 was keeping track of shape correctly