Fix static_code handling in freshcoderef op.