In the package installer, after creating a docType, also save it (now required) In DocumentType, use the whole contentType to new-up a docType and check if the allowedtemplate isn't null Properties can have empty strings as values, can't convert those to int/datetime Seperator character in ExpressionHelper was string.Empty, got malformed queries