First, the treaty for scholars does not apply to H1B holders.
Second, since you do meet the substantial presence test for 2016, you are a resident alien. You would enter th 1042s based on the income code in box 1. What is the income code? And were taxes withheld?