Fix cactus_realign splitting mode and add trim options

(Need tests for cactus_realign still)