Allow attachSchema to replace an existing schema, rather than combining

In the project I'm currently working on I was relying on attachSchema overriding any previously attached schemas.  I've tried to add a way to allow it again.

Not sure if I should be using the options object here, or if cleaning it up afterwards is really necessary.