Refactored take_unwrap (libstd/option.rs)

Using pattern matching instead of is_some + unwrap