Architects have come up with clever ways to live in terraces and small homes close to parks and playgrounds, and buyers are on board.