fix: type check for instance script supporting both Hash and Array