cleanup: rect, remove C_pointer_to_block and other tidying