Added ability to easily register a type and all its array types up to a
specified dimension.