Avoid re-arranging signals on register outputs
Fixed bug in synthesis of memories that are never written