Fixes Issue 9250 - Wrong error line in assignment.

Error loc was shown for RHS symbol of assignment instead of using the loc of
the assignment expression itself. Added an optional 'Loc' parameter to
Expression::implicitCastTo to override error loc.