[DDMD] [refactor] Move Expression::inlineCopy into a free function