If you claim $5000 treaty benefit, you have to
Use 1040NR, in your case, file as dural status.
Treaty benefits require Non-Resident status. 1040 and 1040A is for Resident.
To, it is probably better for you to file 1040, and give up $5000 treaty benefits.