Moved replicate, padr and padl to be module global.