patricia: ensure memory is zeroed when allocating objects