Promoted several types to long, and added loop start and end index reporting to the stream serializer