Tweak style of _.compose.
Use a while loop.
Merge pull request #1702 from braddunbar/compose

Tweak style of _.compose.