support explictly specifying index type for output object

addresses feature request #207