Add checks when unpacking SpikeObject