Migrated Sequence.is_increasing() and Sequence.is_decreasing().