fix __optionsclass__

Fix options parsing when setting `__optionsclass__` to use a custom options class.