fix handling of EMCC_LEAVE_INPUTS_RAW
asmify CHECK_HEAP_ALIGN calls