Cooper Raiff proves he's a filmmaker to watch with this neat debut, but a strange ending undoes so much of what makes it interesting