Mark opt as inplace
Make tests pass in fast_compile.
Merge pull request #1771 from nouiz/fast_compile

[BUG] in fast compile related to inplace opt.