SCI: improve kPortrait debug support + fix