Using contexts for file handling as much as possible
Updated test for dealing with scalar conversions with struct arrays and dynd