Cycle-Consistent Learning for Joint Layout-to-Image Generation and Object Detection