Fix #242: Mask out unwanted bits for integer results
When a foreign call is specified to return an integer that is less than 32-bits long, we need to mask out unwanted bits because the compiler may return the result in al or ax, without modifying the other parts of the eax register.