If a JSReplacement method is also JSIsPure, treat it as constant if all its arguments are constant.
Mark the Math proxies as pure.