Set global reference when using id attribute
Name constraint callbacks for profiler, make more efficient
Update shim to use primus