Fixed bug to avoid allocation of zero-sized block in STArray::resize