Distribute function for functors.

Additional reading:
http://comonad.com/reader/2013/representing-applicatives/