Fix value_for implementation and use

`Thor::CoreExt::HashWithIndifferentAccess` has a bug in `has_key?` - see https://github.com/erikhuda/thor/pull/253#issuecomment-8551838