Fixed a number of NullPointerExceptions that could be thrown when calling methods after instantiating the constraint using its secondary constructor, and before imposing it (i.e. before constructing the MDD).