Use correct printf format for printing variables of size_t.
Fixed bug where the attributes index was not correctly stretched when we get new attribute types.