Fixed serialization with inner exceptions, renamed scopeObject to scopeOptions, and a few other minor touchups