Add index validator to Interface and Pattern to prevent them from creating invalid class instances with duplicate port identifiers.
Minor docstring tweak.