Fix zval_copy_ctor

This should be dependent on PR 1986 and contains one new commit.

The type of the dest zval was copied from the source, but in the KindOfStaticString case, the data of the dest zval is overwritten with a plain string. This causes an assertion when the dest zval is used.

Enable the test which previously failed due to this bug.