nine/resources: WIP 3, fix box/rect conversion