Fixes issues with @HasNoSideEffects

First issue is handling of late resolved methods and the
second issue is handling method calls inside other expressions
when copying the side-effect data at MethodInliner.
In both cases the marking of side-effect-free was lost.

Change-Id: I70ddad8980da784c3ba658041b51396ea55b3044