Make Element a monad by adding map and flatMap.

This allows using for-comprehensions with Elements.