Improved qml scriptcollector.

Added handling of parsing errors.
Added getter for first property insertion point (top of first qml object).
Returns correct offset for dynamic slots (aka javascript functions).