Adding concat function
Fix concat function to conform linq operator

Fix generator may nil bug