Switch from rep_len() to rep() for 2.15 compatibility