Add the possibility of specifying an attribute type different from the inference from the attribute name