Alloc added to release debug interface. Content stream refactored to make arrays when nested rather than forward as a big string.