[Legacy] Switch RACSignal primitives to map and flatten

Depends on #1470.

See #1376.