introspection: new helpers to access array/struct

WARNING: this changes dt_introspection_access_array()
TODO: support unions