Resolve mantis issue 216. Removed the asAbstractContinuousDomain(X) member which did not take cast failure into account. Rewrote the few places where it was used.