Fix for memory corruption most evident on the RaspberryPi -- likely the cause of some crashes on iOS. This was prototype that, with a second look, resulted in a WTF?