Add "type" to Blob

A follow-up for issue #1820, adds the optional "type" support.