Optimize away masks on stores to HEAP8 and HEAP16.

Optimize HEAP8[i] = x & 255 to HEAP8[i] = x, and similar for HEAP16.
Merge pull request #1935 from sunfishcode/incoming

Optimize away masks on stores to HEAP8 and HEAP16.