fix CompositionApplicativePlus

Cherry-picking pull request #364 (8cfe778)