Raise error in assembly on unknown domain type

Rather than silently falling through in assemble if the domain type is
one we don't know about, produce a useful error message.