Add proxy for getOption to application.

fixes #1537