Add test cases and fixes for class path errors when assignment or appends used self or portion of self as source. Fixes ticket #3714