Fix for #412: Route configured as RegExp object throwing error

https://github.com/BlueSpire/Durandal/issues/412