Add toString() for block type