add get(Type)Option methods
port some option uses
move lots of attr_ calls over to typed getOption
jsdoc
Merge pull request #278 from danvk/typed-options

Typed options