[primitive arrays] define npy_bool in case numpy is not available.