Fix for issue #249: Refactored options object creation, mostly in TextRange module