Only set the language attribute on map and reduce phases.

Closes #154