Support options with string keys

I load session options in a YAML, so I need to accept strings also as keys.