Expand instances of _INDEX_ macros

This suppresses some warnings.
provide method so that imp argv support can be compiled with other argv support
avoid some copies in close pair container
suppress deprecated warning