Add dynamic promotion from bool to other types when constructing from pyobjects