Add SequenceOf.map, SequenceOf.reduce

Map is a standard lazy operation, why had it not been added before?
Both map() and reduce() for Sequences just delegate to Swift built-ins.
Also, a bug of Swift compiler was discovered.