Deref right value for compound assign ops

Currently we do not support IS_REFERENCE operands for most of our
*_function's (should we?), so we need to deref here.
Fix array/object cast of refcounted tmp var
More fixes for array/object casts with temporary variables