dtype.pyx: add missing format strings and tests for it