Passing any string as 'type' just works. Unknown type strings should result in exception.
Passing any string as 'type' just works. Unknown type strings should result in exception.