Don't mutate the gem method options hash

fixes #2447