support explictly specifying index type for output object
Merge pull request #212 from wtangiit/master

support explictly specifying index type for output object