Fixes repeat for axis=0 with scalar input
#1433
Merged
repeat for axis=0 with scalar input
#1433