Fix value object when hash with key/value coercion is used (fixes #173)