add non-const versions of get(size_t) / get(const std::string&) (cherry-picked from 002a2dd by ptarabbia)