Allow attachSchema to replace any existing schema, rather than combine

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.