Fix erlang:is_process_alive/1
erts: Fix copy error in erlang:delete_element/2

Off-by-one error in element copy.
erts: Refactor erlang:insert_element/3 for clarity
Loosen the assumptions of code that handles escaping functions

The HiPE compiler implicitly relied on the assumption that a function
will never appear as both exported and also used as function closure.
This was true because the BEAM compiler prior to R16B created module
local anonymous functions for each closure. A proposed change to the
BEAM compiler invalidates this invariant, so in order to accommodate
for this change there needs to be a change of how the set of possibly
escaping functions is computed.

While doing this, the code was simplified by taking out a boolean()
tag that indicated whether a function is a closure or exported and
also slightly cleaned up the affected modules.
[observer] Add debug printouts in ttb_SUITE

To troubleshoot failed test case trace_resumed_after_node_restart on
windows.
[common_test] Add -force_stop skip_rest option when repeating tests

To allow a repeated test to finish immediatly, 'skip_rest' option can
now be used in combination with 'force_stop'. If this option is used,
only the current testcase will be completed after timeout is reached
when repeating with 'duration' or 'until'.
[common_test] Add support for testing repeated testruns

ct_test_support which is used in common_test's own tests did not
support testruns with -repeat, -duration or -until options. This is
now added.
Added option wait_for_linebreak - so that expect does not need \n to match
[reltool] Clean up work dir after test

This is to save space in daily tests.
Result of failed test cases are still saved.
stdlib: Remove obsolete testcase dets_SUITE:otp_9607
stdlib: Fix unstable testcase ets_SUITE:delete_large_named_table

Remove the call trace from this testcase as we cannot guarantee named
table to be gone until ets:delete returns anyway.
[test_server] Don't hang due to invalid io request

A bug in test_server_gl caused io requests containing invalid data
(i.e. not unicode:chardata()) to hang, since no io reply was
sent. This has been corrected.
[common_test] Add tests for repeated testruns

ct_repeate_testrun_SUITE is added, which tests the following options
to ct_run:

-repeat N
-duration [-force_stop [skip_rest]]
-until [-force_stop [skip_rest]]
[common_test] Document '-force_stop skip_rest' option to ct_run
Don't lookup the node unless required in gen:call/{3,4}

Move some operations that aren't required for the happy path.
The operations were small, so they shouldn't show a big difference
in benchmarks except for systems with many active gen processes.
Use erlang:demonitor's flush option on timeout

It is equivalent to the few lines removed, except more efficient.
Don't lose the extension mark for object set parameters

When an object set is an actual parameter, the extension marker
for the object set could get lost.
Prevent loss of objects after the extension marker

In an object set with a single root object, objects after
the extension marker would be lost.
Be less eager requesting wakeup for cleanup jobs
Fix `+sws' and `+swt' system flags