Add Option::into_result

This is the inverse of `Result::ok` and helps to bridge `Option` and
`Result` based APIs.