Revert "restore TypeError being raised for dictionary"

This reverts commit 5aa63e9882af5cae68e4d1fb2ddc6c2ceea97611.