Fix test for bug#1516
Add tests for REPEAT decimal!

And reformat a comment.