Use MoveValueToTypedRegister() in UnifyTypes().

Fix some stacktype handling bugs in various functions.
Basic support for integer immediate conversions