Fix and test for assert/crash in v8 inlining of local functions in qml mode

When v8 tries to inline a local function which has been flagged
is_qml_global, the assert "CHECK(location_ != __null)" fails.

This happens because of the early out in RecordTypeFeedback for
is_qml_global.  I've limited the early out to UNALLOCATED
variables with is_qml_global.

bug: https://bugreports.qt-project.org/browse/QTBUG-31366

Change-Id: I360ef1a05a970589159686cf3100cb70de9ae29d
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Merge remote-tracking branch 'origin/release' into stable

Change-Id: Ic0daef1ae2cd8d9dc9e4e1597d730a42ad00c7b1