Add a more efficient way of allocating structures that use stringfields