libgwnblocks: separated attributes port_type, port_nr, also in function process_data, and elsewhere