Add stream copying optimization switch depending stream type.

An unit test is added
Fixes compilation error

‘>>’ should be ‘> >’ within a nested template argument list
Fixes compilation error

need ‘typename’ before
‘rapidjson::StreamTraits<InputStream>::StreamCopyType
Merge pull request #32 from miloyip/issue30streamcopy

Make stream local copy optimization as trait option per stream type