Refactored iter (libstd/option.rs)

Using as_ref() instead of match