fix(modal): don't modify default options on open

this fix just copies the default options before extending. previously the default options would actually be modified each time a modal is open which leads to problems if you use different sets of options on different modals.