some refactor for outputSchema wrapping
adding size check before wrapping schema into tuple schema
Merge pull request #348 from aniket486/tuple_outputschema

some refactor for outputSchema wrapping