[bindings] Fix *_from_string functions

Without the element-type they will be getting garbage, at least with
Python.
3 files changed