Re-work Port construction slightly so that _flags is always initialised before reset...