fix line terminator from crlf to lf
fix "key" usage in wrapper_fill_indexes(). refs #1671