instead of last statement being expression value closes #629
also add bitCast builtin function. closes #387