Moved templates into _inl files. Refined the CSV* API with templates so that it does not depend on character type of streams