dbi plugin: Implement support for numeric options.

Fixes Github issue #233.