Make options object prototype-inherited

Fixes #2294