Booleans are implicitly casted, even when explicitly typed

I just spent a few hours debugging my code when I realised that my masking was going wrong. Upon investigation, it turned out that even though I explicitly typed dones to be bool, the replaybuffer converted them to np.int32. This was tried with both python's standard bool type, as well as numpy's bool signature '?'. Both had the same effect.

Steps to reproduce: image

Edited by Mitchell Faas