fix vectorised version of gpio get/put interface