This clever, surprisingly grounded fantasy-drama takes the concept of the genie-in-the-bottle story as a cautionary tale and turns it on its head.