Make concat work properly and add a test for that.
Merge pull request #93 from pjonsson/fix-concat

Make concat work properly and add a test for that.