Optimize away masks on stores to HEAP8 and HEAP16.

Optimize HEAP8[i] = x & 255 to HEAP8[i] = x, and similar for HEAP16.