ldb-modules: avoid reallocating the attributes array if we don't have ranged attribut...