Repeat support

@xudifsd Having nil be a subtype to sequences is very suspect here. I can't say I understand the reasoning.