Added apply method to Option type.

Adds a conditional execution method for the `Option` type, similar to Scala's `Option.foreach()`. This is like `Option.map`, except that it does not return a value. This should help in reducing some `match` boilerplate.