Copy options in parseOptions() if object is specified

fixes #239
Merge pull request #269 from estliberitas/parse-options-fix

Copy options in parseOptions() if object is specified