message/messageset: cleanup of slice bounds where possible